import type { IllnessTime } from '@/enum'
import { flagOptions, timeOptions } from '@/services/constants'

export const getIllnessTimeText = (value: IllnessTime) => {
  return timeOptions.find((item) => item.value === value)?.label
}

export const getConsultFlagText = (value: 0 | 1) => {
  return flagOptions.find((item) => item.value === value)?.label
}
